package com.yaowk.sfp.login.api;

import com.yaowk.sfp.common.base.PageReq;
import com.yaowk.sfp.common.base.PageResp;
import com.yaowk.sfp.login.api.model.LoginLogModel;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("login")
@RequestMapping("/login/log")
public interface LoginLogApi {

    @GetMapping
    PageResp<LoginLogModel> list(LoginLogModel loginLog, PageReq pageReq);

    @GetMapping("/self")
    PageResp<LoginLogModel> selfList(LoginLogModel loginLog, PageReq pageReq);

    @PostMapping
    LoginLogModel save(LoginLogModel loginLog);

    @DeleteMapping("/{id}")
    void delete(@PathVariable Long id);

}
